package com.lagou.cloud.gateway.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("lagou-service-user")
@RequestMapping("/user")
public interface UserServiceFeignClient {

    /**
     * 根据token查询用户登录邮箱接⼝
     */
//    @GetMapping("/info/{token}")
//    String info(@PathVariable String token);
    @GetMapping("/filter/info/{token}")
    String info(@PathVariable String token);
}
